package com.ruoyi.web.controller.tzzl;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.tzzl.domain.WzPayConfig;
import com.ruoyi.tzzl.service.IWzPayConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 支付配置Controller
 * @author by caoyong
 * @date 2022/11/17
 **/
@RestController
@RequestMapping("/tzzl/config")
public class WzPayConfigController extends BaseController {

    @Autowired
    private IWzPayConfigService wzPayConfigService;

    /**
     * 查询支付配置列表
     */
    @GetMapping("/list")
    public TableDataInfo list(String type)
    {
        startPage();
        List<WzPayConfig> list = wzPayConfigService.selectWzPayConfigList(type);
        return getDataTable(list);
    }

    /**
     * 修改支付配置
     * */
    @GetMapping("/updateConfig")
    public AjaxResult updateConfig(@RequestBody WzPayConfig wzPayConfig){

        return AjaxResult.success();
    }


}
